package com.lhd.qd.module.system.employee.model.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhd.qd.module.system.employee.model.dataobj.EmployeeDO;
import com.lhd.qd.module.system.employee.model.dto.EmployeeSaveDTO;
import com.lhd.qd.module.system.employee.model.vo.EmployeeDetailVO;
import com.lhd.qd.module.system.employee.model.vo.EmployeeListVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public abstract class AbstractEmployeeConverter {

    public static AbstractEmployeeConverter INSTANCE = Mappers.getMapper(AbstractEmployeeConverter.class);

    public abstract Page<EmployeeListVO> doPage2ListVOPage(IPage<EmployeeDO> doPage);

    public abstract EmployeeDetailVO do2DetailVO(EmployeeDO dataObj);

    public abstract EmployeeDO saveDTO2DO(EmployeeSaveDTO saveDTO);
}
